//
//  DebugTool.swift
//  Edaixi-iOS
//
//  Created by 刘树华 on 2017/11/28.
//  Copyright © 2017年 刘树华. All rights reserved.
//

import Foundation

func MYDebugPrintf(file:String = #file ,fun:String = #function,line:Int = #line ,msg : Any?){
    if let message = msg {
        #if DEBUG
         print("fileName->\(String(describing: file.components(separatedBy: "/").last))\n functionName->\(fun)\n lineNumber ->\(line)\n log->\(message)")
        #endif
    }else{
         #if DEBUG
        print("fileName->\(String(describing: file.components(separatedBy: "/").last))\n functionName->\(fun)\n lineNumber ->\(line)\n log->nil")
        #endif
    }
    
}
